import request from "@/utils/request";
// 获取全部
export const getPatient = (PatientRequestData) => {
  return request.request({
    url: `/admin/pat/pages`,
    method: "POST",
    data:PatientRequestData,
  });
}

// 删除
export const deletePatient = (id) => {
  return request.request({
    url: `/admin/pat/delete/${id}`,
    method: "get",
  });
}

//更新
export const updatePatient = (PatientRequestData) => {
  return request.request({
    url: `/admin/pat/update`,
    data:PatientRequestData,
    method: "post",
  });
}


//添加
export const addPatient = (PatientRequestData) => {
  return request.request({
    url: `/admin/pat/add`,
    data:PatientRequestData,
    method: "post",
  });
}